//
//  MujiDubDatabaseManager.h
//  testdemo
//
//  Created by yule on 2017/5/19.
//  Copyright © 2017年 yule. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDB.h"
#import "MujiDubRecordModel.h"

#define kDatabaseFileName @"MujiDubDatabase.sqlite"

@interface MujiDubDatabaseManager : NSObject
{
    FMDatabase *_database;
    
}

@property (nonatomic, strong) FMDatabaseQueue *fmDBQueue;

+(instancetype)shareManager;


- (void)insertResultModel:(MujiDubRecordModel *)model;
- (void)deleteResultModel:(MujiDubRecordModel *)model;
- (void)updateResultModel:(MujiDubRecordModel *)model;

- (NSArray *)queryAllHistoryModelWithUserId:(NSString *)userId;

- (NSArray *)queryAllHistoryModelWithUserId:(NSString *)userId dialogid:(NSString *)dialogid;

- (NSArray *)queryAllHistoryModelWithUserId:(NSString *)userId dialogid:(NSString *)dialogid dialoglineid:(NSString *)dialoglineid;

@end
